package me.eleme.anubis.openapi.api.entity.order;


import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * 取消订单请求实体
 * @author liuzhiyong
 */
@Data
public class CancelOrderReq {
    /** 订单号 */
    @JSONField(name = "order_id")
    private String orderId;
    /** 外部订单号 */
    @JSONField(name = "partner_order_code")
    private String partnerOrderCode;
    /** 从可用取消原因列表接口返回结果选择 */
    @JSONField(name = "order_cancel_code")
    private Integer orderCancelCode;
    /** 单位分 取消实际需扣金额，从预取消接口拿 */
    @JSONField(name = "actual_cancel_cost_cent")
    private Long actualCancelCostCent;
    /** 取消原因补充 20字以内 */
    @JSONField(name = "order_cancel_other_reason")
    private String orderCancelOtherReason;
    /** 1商户取消, 2 用户取消 */
    @JSONField(name = "order_cancel_role")
    private Integer orderCancelRole;

    /**
     * true 期望发起售中逆向 false 不期望发起售中逆向
     * 当订单被取消时,是否期望发起售中逆向【新增字段】
     *
     */
    @JSONField(name = "need_reverse_order")
    private boolean needReverseOrder;
}
